package com.qd.system.dto;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 修改密码
 */
@Data
@Accessors(chain = true)
public class PasswordDto {

    private String personId;
    private String oldPassword;
    private String password;
    /**
     * 检查是否传入旧密码
     */
    private Boolean isCheckOldPassword;
    /**
     * 是否是登录用户
     */
    private Boolean isLoginUser = false;

    public void freeData() {
        this.personId = null;
        this.oldPassword = null;
        this.password = null;
        this.isCheckOldPassword = null;
    }
}